package system.struct;

/**
 * This implementation is used to describe the result of Parser
 * <p>
 * keyword: is the <tt>String</tt> with concepts kicked out
 * <p>
 * cnptList: a List of matched <i>Probase Concepts</i>
 * 
 * @author Jack
 * 
 */
public class ParserResult {
	/** the <tt>String</tt> with concepts kicked out */
	String keyword;
	/** a List of matched <i>Probase Concepts</i> */
	String[] cnptList;

	/**
	 * Constructs a <tt>ParserResult</tt> using given <i>keyword</i> and
	 * <i>Concept List</i>
	 * 
	 * @param keyword
	 *            <i>keyword</i>
	 * @param cnptList
	 *            <i>Concept List</i>
	 */
	public ParserResult(String keyword, String[] cnptList) {
		this.keyword = keyword;
		this.cnptList = cnptList;
	}

	/**
	 * Returns <i>Concept List</i>
	 * 
	 * @return <i>Concept List</i>
	 */
	public String[] getCnptList() {
		return this.cnptList;
	}

	/**
	 * Returns <i>keyword</i>
	 * 
	 * @return <i>keyword</i>
	 */
	public String getKeyword() {
		return keyword;
	}
}
